Some of the AutoCAD property transfer configuration must be done in an Advanced File Management configuration file that resides on the Project Portal server. By default, the file is located at:
<InstallationFolder>/Project Portal/KRONO/conf/config.pm
The file contains some of the settings that are configured in Project Portal as described in Configuring the AutoCAD property transfer options. The file also contains other settings that must be configured manually. You may edit the file in any plain text editor.
AutoCAD property transfer is configured with three settings:
An AutoCAD attribute is analogous to a database field definition. Each attribute definition includes a tag (name) and a value (text). Multiple attribute definitions can be grouped together with other attributes or graphical entities into what is known as a block definition. A block definition is a template from which copies can be inserted into drawings. Blocks and attributes are often used as title blocks in 2D drawings. One attribute can be used for each text box in a title block, for example, title lines, drafter's initials, date, drawing number, revision number, and so on. All of the attributes in a single block constitute the configuration for one title block. Advanced File Management supports multiple title block configurations for various sheet sizes, drawing types, contractor title blocks, and so on. Which title block to transfer property data with can be specified by either the Project Portal document type name or in a custom property.
Attribute mappings in config.pm specify the name of the block and the name of the attribute within the block in which to transfer specific Project Portal property values. Each Project Portal property that you want to transfer to AutoCAD should be mapped to a different attribute. The attribute mappings use the syntax:
<PropertySet>|<PropertyName> => ["<BlockName>", <AttributeName>],
The attribute mappings are specified in the autocadvariables variable in config.pm.
Following are example attribute mappings in a config.pm file:
$::autocadvariables = { ARK" => { # 002|001" => ["ARK", KALU"], # not in use 002|002" => ["ARK", PIIRNO"], 001|003" => ["ARK", KOHDE3"], 001|004" => ["ARK", KORTTELI"], 001|005" => ["ARK", TONTTI"], 001|006" => ["ARK", RAKTOIMENPIDE"], 001|007" => ["ARK", RAKNIMI"], 001|008" => ["ARK", KATUOSOITE"], 001|009" => ["ARK", POSTINO"], 001|010" => ["ARK", PIIRSIS1"], 001|011" => ["ARK", PIIRSIS2"], 001|012" => ["ARK", PIIRSIS3"], 001|013" => ["ARK", MK1"], 001|014" => ["ARK", MK2"], 001|015" => ["ARK", MK3"], }, DEFAULT" => { # 002|001" => ["foo", bar"], # not in use 002|002" => ["AMW_TITLE", AIOANO"], # referenssinumero 003|0001" => ["AMW_TITLE", AIOLNG"], # mittakaava }, }; $::cadref_useprofileforproperties = 1; $::cadref_profilecode = 002|001";
In the preceding example, ARK and DEFAULT are two application profiles that use different block and attribute names. A custom property value is used to specify the drawing profile because the variable cadref_useprofileforproperties is set to 1. The custom property set code and property code that contain the application profile name are set in cadref_profilecode. If cadref_useprofileforproperties was set to 0, the custom property value would be ignored and the document type name would be assumed to also be the profile name. In the preceding example, if the application profile for a document is set to ARK, the value of the custom property with code 007 in the custom property set with code 001 is transferred to the AutoCAD attribute RAKNIMI in block ARK.